package com.happyfamily.springboot.crowdsourcingplatform.service.pan;

import com.happyfamily.springboot.crowdsourcingplatform.base.result.Results;
import com.happyfamily.springboot.crowdsourcingplatform.model.Need;

/**
 * @Author Administrator
 * @create 2020/02/26 11:02
 */
public interface DemandService
{


	/**
	 * 查询需求状态只有通过的数据
	 * @param offset
	 * @param limit
	 * @return
	 */
	Results<Need> getNeedBys(Integer offset, Integer limit);


	/**
	 * 需求搜索
	 * @param ntitle
	 * @param sname
	 * @param offset
	 * @param limit
	 * @return
	 */
	Results<Need> getNeedByFuzzyNeedTitle(String ntitle, String sname, Integer offset, Integer limit);


	/**
	 * 个人需求
	 * @param offset
	 * @param limit
	 * @param account
	 * @return
	 */
	Results<Need> getUserNeedBys(Integer offset, Integer limit, String account);

	/**
	 * 个人需求条件搜索
	 * @param ntitle
	 * @param sname
	 * @param offset
	 * @param limit
	 * @param account
	 * @return
	 */
	Results<Need> getNeedByUserSearch(String ntitle, String sname, Integer offset, Integer limit, String account);
}
